Performs parameter stability test (Kundu and Harezlak, 2019) with continuous partitioning variable to determine whether the parameters of linear mixed effects model remains same across all distinct values of given continuous partitioning variable.
StabCont(data, patid, fixed, splitvar)
name of the dataset. It must contain variable specified for patid
(indicating subject id) and all the variables specified in the formula and the StabCont(data, fixed, splitvar)partitioning variable of interest specified in splitvar
.
name of the subject id variable.
a two-sided linear formula object describing the fixed-effects part of the model, with the response on the left of a ~
operator and the terms, separated by +
operators, on the right. Model with -1
to the end of right side indicates no intercept. For model with no fixed effect beyond intercept, please specify only 1
right to the ~
operator.
the continuous partitioning variable of interest. It's value should not change over time.
It returns the p-value for parameter instability test
The continuous partitioning variable of interest. It's value should not change over time.
where theta
is the parameter associated with
b_i
is the random intercept. Also, StabCont()
performs the following omnibus test
where,
Kundu, M. G., and Harezlak, J. (2019). Regression trees for longitudinal data with baseline covariates. Biostatistics & Epidemiology, 3(1):1-22.
# NOT RUN {
#--- Get the data
data(ACTG175)
#--- Run StabCont()
out<- StabCont(data=ACTG175, patid="pidnum", fixed=cd4~time, splitvar="age")
out$pval
# }
Run the code above in your browser using DataLab